package com.ty.skysystem.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.PageInfo;
import com.ty.skysystem.entity.DriverEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ty.skysystem.entity.req.DriverEntityREQ;
import com.ty.skysystem.entity.vo.TruckEntityVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 驾驶员信息表: 用于存放和管理驾驶员信息 字段列: team_id => 对应表: truck_team
 *
 * @author tianyuzhu
 * @email 1659770218@QQ.COM
 * @date 2020-12-11 15:40:53
 */
@Mapper
public interface DriverDao extends BaseMapper<DriverEntity> {

  IPage<DriverEntity> selectDriversUnboundTruck(
      IPage<DriverEntity> page, DriverEntityREQ driverEntityREQ);

  List<TruckEntityVo> selectTruckIsDriverId(Integer driverId);
}
